import java.util.ArrayList;


public class CommandRecorder {
private ArrayList<Command> history;
private int currentIndex;
public CommandRecorder() {
	this.history = new ArrayList<Command>();
	currentIndex = 0;
}
public void record(Command command) {
	history.add(command);
	currentIndex ++;
}
public int retriveCurrentIndex() {
	return this.currentIndex;
}

}
